﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LinkView.aspx.cs" Inherits="Easy.Web.Pages.DataPages.LinkView" %>

<!DOCTYPE html>
<html lang="zh-cn">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>View</title>

    <script src="/_js/jquery-1.9.1.min.js"></script>
    <script src="/_js/bootstrap.min.js"></script>
    <script src="/_js/bootstrap-datetimepicker.min.js"></script>
    <script src="/_js/common.js"></script>
    <script src="/_js/Core.js"></script>
    <script src="/_js/Core.LinkView.js?12"></script>
    <script>
        var DoNotShowButton = "<%=Request["DoNotShowButton"]%>";
    </script>
    <asp:Literal runat="server" ID="CoreScript"></asp:Literal>
    <link href="/_css/bootstrap.min.css" rel="stylesheet" />
    <link href="/_css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link href="/_css/sort.css" rel="stylesheet" type="text/css" />
    
    <link href="/_css/common.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/_css/iconfont.css" />
    <style>
        body{overflow:hidden}
        .header {
            margin: 10px 0 10px 15px;
        }
        .glyphicon-filter{
            cursor: pointer;
        }
         .FilterDiv{
             cursor: default;
             clear:both;
             overflow:auto;
        }

        .form-group{
            margin:0;
            padding:10px;

              }
        .dropdown-menu {
            -webkit-border-radius: 0;
        }
        .button-panel{
            padding:0 10px 10px 10px;
        }
       .rebtn{
           margin-right:3px;
       }
  #ListContainer{
            margin-bottom:15px;
            border:1px solid #e1e6eb;
       }
       #ListContainer, #ListContainer-title, #ListContainer-body{
           padding:0;
       }
       #ListContainer-title .table, #ListContainer-body .table{
            margin:0;
            border:none;
       }
       #ListContainer-body .table{
            border-top:1px solid #e1e6eb;
       }
       #ListContainer-title .table thead tr th, #ListContainer-body .table thead tr td{
           border:none;
       }
       #ListContainer-title{
           position:relative;
            z-index:1;
        }
        #ListContainer-body {
             position:relative;
        }
        @media screen and (max-width: 767px){
            .table-responsive{
                margin-bottom:0;
                overflow:auto;
            }
        }
       #LookupListContainer{
        height:420px;
        width:558px;
        overflow:auto;
        margin-top:8px;
        border:1px solid #e1e6eb;
       }
       #LookupListContainer-title{
           position:relative;
           z-index:1;
       }
       #LookupListContainer-body{
           position:relative;
       }
       #LookupListContainer-title .table, #LookupListContainer-body .table{
           margin:0;
           border:none;
       }
       #ListContainer-body a:hover {
    color: #09c !important;
    text-decoration: underline;
}
    </style>

</head>
<body>

    <!-- Brand and toggle get grouped for better mobile display -->

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="header" id="div_nomal" style="display:none">
        <span id="btn_add"><a href="#" class="btn btn-primary ng-binding" title="Create" onclick="core.OpenEntity(this)"><span class="glyphicon glyphicon-plus"></span>&nbsp;新建</a></span>
        <span id="btn_delete"><a href="#" class="btn btn-primary ng-binding" title="Delete" onclick="core.SoftDelete(this)"><span class="glyphicon glyphicon-trash"></span>&nbsp;删除</a></span>
        
    </div>
    <div class="header" id="div_N2N" style="display:none">
        <%--<span><a href="#" class="btn btn-primary ng-binding" id="AddExist" title="AddExist" onclick="core.AddExist(this)"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加现有</a></span>--%>
        <span id="btn_add_n2n"><a href="#" class="btn btn-primary ng-binding" id="AddExist" title="AddExist" onclick="core.View.N2N(this)"><span class="glyphicon glyphicon-plus"></span>&nbsp;添加现有</a></span>
        <span id="btn_delete_n2n"><a href="#" class="btn btn-primary ng-binding" id="RemoveExist" title="RemoveExist" onclick="core.View.RemoveExist(this)"><span class="glyphicon glyphicon-trash"></span>&nbsp;移除</a></span>
    </div>
    <!-- /.navbar-collapse -->
    <div class="modal fade  bs-example-modal-lg lookupmodal"  etn="" fieldid="">
                            <div class="modal-dialog modal-lg ">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                            <span aria-hidden="true">&times;</span></button>
                                        <h4>
                                            查找</h4>
                                    </div>
                                    <div class="modal-body" style="max-height: 500px; overflow: auto">
                                        <div class="input-group">
                                            <input type="text" name="txt_lookupsearchValue" onkeypress="if(event.keyCode == 13) core.Lookup.Search();" class="form-control" placeholder="查找..." />
                                            <span class="input-group-btn">
                                                <button class="btn btn-default" type="button" onclick="core.Lookup.Search();">
                                                   <span class="glyphicon glyphicon-search"></span></button>
                                            </span>
                                        </div>
                                        <table name="LookupListContainer" class="table table-condensed table-hover">
                                            <thead>
                                            </thead>
                                            <tbody>
                                            </tbody>
                                        </table>
                              
                                    </div>
                                    <div class="modal-footer">
                                        <nav name="ListPageing" style="float: left;">
                                            <ul class="pagination" style="margin: 0;">
                                                <li><a href="javascript:void(0);" name="pageFirst" aria-label="Firset" onclick="core.Lookup.FirstPage();" ><span aria-hidden="true">&laquo;</span>
                                                </a></li>
                                                <li><a href="javascript:void(0);" name="pagePrevious" aria-label="Previous" onclick="core.Lookup.PrePage();"><span aria-hidden="true">&lsaquo;</span>
                                                </a></li>
                                                <li><span name="pageInfo">0\0</span></li>
                                                <li><a href="javascript:void(0);" name="pageNext" aria-label="Next" onclick="core.Lookup.NextPage();"><span aria-hidden="true">&rsaquo;</span>
                                                </a></li>
                                                <li><a href="javascript:void(0);" name="pageLast" aria-label="Last" onclick="core.Lookup.LastPage();"><span aria-hidden="true">&raquo;</span>
                                                </a></li>
                                            </ul>
                                        </nav>
                                        <button type="button"  class="btn btn-default ForMulti" style="display:none;" onclick="core.Lookup.MultiSelected();" >
                                            添加</button>
                                        <button type="button" class="btn btn-default" onclick="core.Lookup.MultiSelected();core.Lookup.MultiSelectedOK();" data-dismiss="modal">
                                            确定</button>
                                        <div class="well col-md-12 ForMulti" style="text-align:left;display:none" name="MultiSelectedList" ></div>
                                    </div>
                                </div>
                                <!-- /.modal-content -->\
                            </div>
                            <!-- /.modal-dialog -->\
                        </div>
    <div id="modaldiv">
        
    </div>
    <div id="ListInnerContainer">
        <form id="form1" runat="server">
        </form>
    </div>

    
    <script type="text/javascript" src="/Service/Data/JsHub.ashx?itemtype=view&entityname=<%=EntityName %>&itemname=<%=ViewName %>"></script>
      
</body>
</html>
